<%@ page language="java" import="java.util.*" pageEncoding="utf-8"   isELIgnored="false"%>
<%@ taglib  prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib  prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
	<title>IT园！</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta name="Keywords" content="">
	<meta name="description" content="">
	<link href="css/user.css" rel="stylesheet" type="text/css">
	<script src="js/jquery-1.10.2.min.js"></script>
	<script src="js/user.js"></script>
  </head>
<body>
<%--积分消费页面 --%>
<jsp:include page="/user/integral/integralLeft.jsp"></jsp:include>
<div style="float: left;width:980px;margin-top: 8px;margin-left: 30px;">
		 <label class="col-sm-2 control-label" style="margin-left: -10px;">剩余积分:<span style="color: red;">${user.integral }</span></label>
		<table class="table">
			  <thead>
			    <tr>
			      <th><input type="checkbox"></th>
			      			<th>积分</th>
							<th>原因</th>
							<th>时间</th>
			      </tr>
			  </thead>
 			 <tbody>
  					<c:forEach items="${integralConsumes }" var="integralConsume">
						<tr>
							<td><input type="checkbox"></td>
							<td>${integralConsume.integral }</td>
							<td>
								<c:if test="${integralConsume.category==0 }">下载资源</c:if>
								<c:if test="${integralConsume.category==1 }">转让给他人</c:if>
								<c:if test="${integralConsume.category==2 }">提问赏分</c:if>
							</td>
							<td><fmt:formatDate value="${integralConsume.createDate}" type="both" pattern="yyyy-MM-dd HH:mm:ss" /></td>
						</tr>
				</c:forEach>
  			</tbody>
		</table>
	</div>
</body>
</html>
